package cn.com.zhaoweiping.ie.convert;

import cn.com.zhaoweiping.ie.ExcelField;
import cn.com.zhaoweiping.ie.RowWrapper;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.metadata.CellData;
import java.util.List;
import java.util.Map;

/**
 * 读取Excel单元格数据转换<br>
 *
 * @author 冰羽
 * @version 2.2.0
 */
public interface CellDataConverter {

  /**
   * 数据转换
   *
   * @param excelFields {@link ExcelField}
   * @param originHeader 原始表头信息
   * @param data 数据
   * @param context sheet等上下文
   * @return
   */
  RowWrapper convert(
      Map<Integer, List<ExcelField>> excelFields,
      Map<Integer, CellData> originHeader,
      Map<Integer, Object> data,
      AnalysisContext context);
}
